//
// Created by tangming991 on 2020/12/21.
//

#ifndef TCOMPILER_SEMANTIC_H
#define TCOMPILER_SEMANTIC_H
#include "scan.h"

class Quaternion{
public:
    std::string op;
    std::string argv1;
    std::string argv2;
    std::string result;
    std::string toString(){
        if (op=="=")
            return result+" = "+argv1;
        else return result+" = "+argv1+" "+op+" "+argv2;
    }
};
void Irparse();
#endif //TCOMPILER_SEMANTIC_H
